package lab02.test04;

public class Staff {
    //1、属性
    private String name;
    private int no;
    private int salary;
    private double increaSalary;

    //2、行为（方法、函数）
    public double Sum(){
        return salary+increaSalary;
    }
    //3、构造方法
    Staff(){}
    Staff(String name, int no, int salary,double increaSalary){

    this.name = name;
    this.no = no;
    this.salary = salary;
    this.increaSalary= increaSalary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNo() {
        return no;
    }
    public void setNo(int no) {
        this.no = no;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public double getIncreaSalary() {
        return increaSalary;
    }

    public void setIncreaSalary(double increaSalary) {
        this.increaSalary = increaSalary;
    }
}
